<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<#include "/admin/include/head.htm">
<script type="text/javascript">
   $(function(){
		var mainform = $("#mainform");  
		//表单底部按钮 
    	LG.setFormDefaultBtn(f_cancel, function(){			
			f_save(mainform, "advertposition_list");
		});
	});
	
</script>
<#if !advertPosition??>
	<#assign isAdd = true />
<#else>
	<#assign isEdit = true /> 
</#if>
</head>
<body style="padding:10px; overflow:hidden;">
	<div id="tabcontainer" style="margin:0; padding:0">
	<form action="<#if isAdd??>save.jhtml<#else>update.jhtml</#if>" 
		method="post" class="validate" id="mainform">
		<#if !isAdd??>
			<input type="hidden" name="id" value="${(advertPosition.id)!''}"/>
		</#if>
		<table class="table">
			<tr>
				<th>位置标题：</th>
				<td>
					<input type="text" name="title"  value="${(advertPosition.title)!''}"					
						class="formText {required: true, maxlength: 20, remote: 'checkTitle.jhtml?oldValue=${(advertPosition.title)!}', messages: {remote: '广告位置标题已存在!'} }" />					
				</td>
			</tr>
				<tr>
				<th>广告位置：</th>
				<td>
					<input type="text" name="position"  value="${(advertPosition.position)!''}"					
						class="formText {required: true, maxlength: 30, remote: 'checkPosition.jhtml?oldValue=${(advertPosition.position)!}', messages: {remote: '广告位置已存在!'} }" />					
				</td>
			</tr>
			<tr>
				<th>广告类型：</th>
				<td>
					<@u.radio name="type" list={'0': '图片', '1':'flash'} 
							value="${(advertPosition.type)!'0'}"/>
				</td>
			</tr>
			<tr>
				<th>宽度：</th>
				<td>
					<input type="text" name="width" value="${(advertPosition.width)!''}" class="formText {required: true}"/>px
				</td>
			</tr>
			<tr>
				<th>高度：</th>
				<td>
					<input type="text" name="height" value="${(advertPosition.height)!''}" class="formText {required: true}"/>px
				</td>
			</tr>
		</table>
	</form>
	</div>
</body>
</html>